const joi = require('joi');

const amount = joi.number().precision(2).required();
const category = joi.string().required();
const time = joi.date().required();
const imageUrl = joi.string();

exports.add_consumption_schema = {
  body: {
    amount,
    category,
    time,
    imageUrl
  }
};

